package com.dykj.fireFighting.api.elasticsearch.devHisSXin.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "devhissxin", type = "product", shards = 1, replicas = 0)
public class EsDevHisSXin implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private String id;
    @Field(type = FieldType.Keyword)
    private String relationId;
    @Field(type = FieldType.Keyword)
    private String uploadTime;
    @Field(type = FieldType.Keyword)
    private String stateTime;
    @Field(type = FieldType.Keyword)
    private Integer sysType;
    @Field(type = FieldType.Keyword)
    private String sysTypeStr;
    @Field(type = FieldType.Keyword)
    private Integer partType;
    @Field(type = FieldType.Keyword)
    private String partTypeStr;
    @Field(type = FieldType.Keyword)
    private String partStatus;
    @Field(type = FieldType.Keyword)
    private String partStatusNum;
    @Field(type = FieldType.Keyword)
    private Integer moniType;
    @Field(type = FieldType.Keyword)
    private String moniTypeStr;
    @Field(type = FieldType.Keyword)
    private Integer moniValue;
    @Field(type = FieldType.Keyword)
    private Integer type;
    @Field(type = FieldType.Keyword)
    private String unitId;
    @Field(type = FieldType.Keyword)
    private String unitName;
    @Field(type = FieldType.Keyword)
    private String deviceName;
    @Field(type = FieldType.Keyword)
    private String centerUnitId;
}
